﻿using System;
using System.Collections.Generic;
using System.Text;
using Newtonsoft.Json;

namespace DEEBCG.ExternalLib.CompanyAPI.Model
{
    /// <summary>
    /// 血压趋势基本报表信息
    /// </summary>
    public class BPTrendReportInfo
    {
        /// <summary>
        /// 周期开始时间
        /// </summary>
        public DateTime Time
        {
            set;
            get;
        }

        /// <summary>
        /// 血压趋势(根据数值集中度计算)
        /// </summary>
        public double? Pressure
        {
            set;
            get;
        } = null;

        /// <summary>
        /// 平均血压趋势
        /// </summary>
        public double? AvgPressure
        {
            set;
            get;
        } = null;

        /// <summary>
        /// 最大血压趋势
        /// </summary>
        public double? MaxPressure
        {
            set;
            get;
        } = null;

        /// <summary>
        /// 最小血压趋势
        /// </summary>
        public double? MinPressure
        {
            set;
            get;
        } = null;

        /// <summary>
        /// 朝向
        /// </summary>
        [JsonIgnore]
        public int? Direction
        {
            set;
            get;
        } = null;

        /// <summary>
        /// 稳定度
        /// </summary>
        public double? Stability
        {
            set;
            get;
        } = null;

        /// <summary>
        /// 数据数量
        /// </summary>
        public int? PressureCount { set; get; } = null;


        /// <summary>
        /// 区间时长（秒）
        /// </summary>
        public double? Interval { set; get; } = null;


        /// <summary>
        /// 获取副本
        /// </summary>
        /// <returns></returns>
        public BPTrendReportInfo Clone()
        {
            return (BPTrendReportInfo)this.MemberwiseClone();
        }

    }
}
